package com.ssm.zhihu_ssm.service.impl;

import com.ssm.zhihu_ssm.dao.AdminClassifyDao;
import com.ssm.zhihu_ssm.service.AdminClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Service(value="AdminClassifyService")
public class AdminClassifyServiceImpl implements AdminClassifyService {

    @Resource
    private AdminClassifyDao adminClassifyDao;

    @Override
    public void deleteClassifyByClassifById(int id) {
        adminClassifyDao.deleteClassifyByClassifById(id);
    }

    @Override
    public void addClassify(String classify) {
        adminClassifyDao.addClassify(classify);
    }
}
